toggleType
( class in module jsPlumbUIComponent
)
Toggles the given type on the component.
typeId – {string} –
Id of the type to toggle.
params – {object} –
Optional params to use if the type does not exist and jsPlumb applies it.
doNotRepaint – {boolean} –
Defaults to false; tells jsPlumb not to repaint after toggling the type.